package com.zhangtai.modules.entity.common;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-06-22 14:42:27
 */
@Data
@TableName("tb_contract_url")
public class ContractUrlEntity implements Serializable {
	private static final long serialVersionUID = 1L;
			/**
		 * id
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)

			private Long id;

	/**
	 * 身份证
	 */
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long oid;
			/**
		 * 身份证
		 */
			private String idCard;

			/**
		 * 流程id
		 */
			private Integer flowId;
			/**
		 * 合同名称
		 */
			private String contractName;
			/**
		 * 
		 */
			private Date createTime;
			/**
		 * 0:正常，1：删除
		 */
			private Integer isDelete;
			/**
		 * 合同e签宝下载地址
		 */
			private String contractEsignUrl;
			/**
		 * 合同阿里云下载地址
		 */
			private String contractOssUrl;
			/**
		 * 合同id
		 */
			private String contractId;
			/**
		 * 0:担保函，1：合同
		 */
			private Integer type;
			/**
		 * 存储路径
		 */
			private String path;

	/**
	 * 合同人姓名
	 */
	private String name;
	/**
	 * 合同开始时间
	 */
	private String contractStartTime;
	/**
	 * 合同结束时间
	 */
	private String contractEndTime;
	/**
	 * 合同状态： 1未生效 2 已生效  3 合同过期 4合同终止
	 */
	private Integer status;


	/**
	 *签订时间
	 */
	private Date signedTime;
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long unitId;
	
}
